import request from '@/utils/request'

export default{
    getHospSetList(current,limit,searchObj){
        return request({
            url: `/admin/hosp/hospitalSet/page/${current}/${limit}`,
            method: 'post',
            data: searchObj //json
          })  
    },
    //删除医院设置
    deleteHospSet(id){
        return request({
            url: `/admin/hosp/hospitalSet/${id}`,
            method: 'post'
          }) 
    },
    //锁定
    lockHospSet(id,status){
        return request({
            url: `/admin/hosp/hospitalSet/changeHospStatus/${id}/${status}`,
            method: 'post'
          }) 
    },
    //批量删除
    deleteBatchHospSet(idList){
        return request({
            url: `/admin/hosp/hospitalSet/batchRemove`,
            method: 'post',
            data: idList
          }) 
    },
    //添加医院设置
    saveHospSet(hospitalSet){
        return request({
            url: `/admin/hosp/hospitalSet/add`,
            method: 'post',
            data: hospitalSet
          })
    },
    //医院设置id查询
    getHospSet(id){
        return request({
            url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
            method: 'get'
          })
    },
    //修改医院设置
    updateHospSet(hospitalSet){
        return request({
            url: `/admin/hosp/hospitalSet/updateHospSet`,
            method: 'post',
            data: hospitalSet
          })
    }
}


  